package com.by.bean;

import com.by.common.valid.ISave;
import com.by.common.valid.IUpdate;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel("企业")
public class Enterprise {

    @ApiModelProperty(value = "企业id,修改时不能为空")
    @NotBlank(message = "企业id不能为空",groups = {IUpdate.class})
    int id;
    @ApiModelProperty(hidden = true)
    String code;
    @ApiModelProperty(value = "企业名称,不可修改",required = true)
    @NotBlank(message = "企业名称不能为空",groups = {ISave.class})
    String name;
    String user;
    String mobile;
    String categoryCode;
    String categoryName;
    String address;

}
